/*
 * @Author: admin@attacker.club
 * @Date: 2022-11-09 14:38:00
 * @LastEditTime: 2022-11-09 15:22:31
 * @Description: 
 */
import request from '@/utils/request'


// 新增
export function createRegion(data) {
  return request({
    url: '/platform/region/',
    method: 'post',
    data
  })
}

// 删除
export function deleteRegion(id) {
  return request({
    url: `/platform/region/${id}/`,
    method: 'delete'
  })
}
// 修改
export function updateRegion(id, data) {
  return request({
    url: `/platform/region/${id}/`,
    method: 'put',
    data
  })
}

// 获取列表
export function getRegions(data) {
  return request({
    url: '/platform/region/',
    method: 'get',
    params: data
  })
}


// 获取详情
export function getRegion(id) {
  return request({
    url: `/platform/region/${id}/`,
    method: 'get'
  })
}